<pro-header></pro-header>
<nz-card>
    <!--<nz-table #nzTable [nzAjaxData]="data" [nzTotal]="total" [nzPageSize]="pagesize" [nzPageIndex]="pageCureent"-->
              <!--(nzPageIndexChange)="getlist($event)">-->
        <nz-table #nzTable [nzAjaxData]="data" [nzTotal]="total" [nzPageSize]="pagesize" [nzPageIndex]="pageCureent"
                  (nzPageIndexChange)="getlist($event)">
            <thead nz-thead>
            <tr>
                <th nz-th nzExpand></th>
                <th nz-th><span>序号</span></th>
                <th nz-th><span>姓名</span></th>
                <th nz-th><span>电话</span></th>
                <th nz-th><span>操作</span></th>
            </tr>
            </thead>
            <tbody nz-tbody>
            <ng-template ngFor let-item [ngForOf]="nzTable.data" let-i="index">
                <tr nz-tbody-tr>
                    <td nz-td nzExpand>
                        <nz-row-expand-icon [(nzExpand)]="item.expand"></nz-row-expand-icon>
                    </td>
                    <td nz-td>{{i+1}}</td>
                    <td nz-td>{{item.name}}</td>
                    <td nz-td>{{item.phone}}</td>
                    <td nz-td>
                        <a (click)="del(item,i)">删除</a>
                    </td>
                </tr>
                <tr nz-tbody-tr *ngIf="item.expand">
                    <td nz-td></td>
                    <td nz-td>备注</td>
                    <td nz-td colspan="3">
                        {{item.conent}}
                    </td>
                </tr>
            </ng-template>
            </tbody>
        </nz-table>
</nz-card>
